package homeworkClass;

import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int i1,i2,i3,i4,i5;
		i1=scan.nextInt();
		i2=scan.nextInt();
		i3=scan.nextInt();
		i4=scan.nextInt();
		i5=scan.nextInt();
		Point p1=new Point(i1,i2);
		Point p2=new Point(i3);
		System.out.printf("%.2f\n",p1.distance());
		System.out.printf("%.2f\n",p2.distance());
		System.out.printf("%.2f\n",p1.distance(i4, i5));
		System.out.printf("%.2f\n",p1.distance(p2));
		
	}

}
